<%-- 
    Document   : index
    Created on : 19-ene-2015, 11:55:44
    Author     : Manuel Vinuesa
--%>


<%@page import="java.sql.SQLException"%>
<%@page import="java.sql.Connection"%>
<%@page import="packageVotaciones.ConexionBBDD"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>Votaciones</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="estilos.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div>
            <section style="text-align: center;margin-top: 4%;">
                <h1>APLICACIÓN DE VOTACIÓN</h1><br><br>
                <form action="ComprobarVotante" method="POST" id="form_datos">
                    DNI <input type="text" name="dni" id="dni" /><br><br>
                    Pass <input type="password" name="pass" id="pass" /><br><br>
                    <p align="center">
                       <input type="submit" name="enviar" value="Votar" /> 
                    </p>
                </form>
                <form action="MostrarEscrutinio" method="POST">
                    <p align="center">
                    <input type="submit" name="enviar" value="Escrutinio" />
                    </p>
                </form>
                <form action="MostrarLista" method="POST">
                    <p align="center">
                    <input type="submit" name="enviar" value="Lista del censo" />
                    </p>
                </form>
            </section>
        </div>
    </body>
</html>
<%!
    ConexionBBDD ConBD;
    public void jspInit(){
        try{
            ConBD=ConexionBBDD.GetConexion();
        }catch(ClassNotFoundException CNFE){
            
        }
        catch (SQLException ex) {
            
        }
        
    }
    
    public void jspDestroy(){
        try {
            ConBD.Destroy();
        } catch (SQLException ex) {
            
        }
   }
 %>
